<template>
	<view class="main">

		<web-view 
		  :src="url"
		  @loaded="onLoaded"
		  @error="onError"
		></web-view>
	</view>
</template>

<script>
	export default {
		options: {

		},
		data() {
			return {
				url: ''
			}
		},
		onLoad(options) {
			this.url = decodeURIComponent(options.url)
			console.log("this.url",this.url)
		},
		methods: {
			onLoaded() {
				console.log("onLoaded")
			},
			onError() {
				console.log("onError")
			}
		}
	}
</script>

<style>
	.main{
		width: 100vw;
		height: 100vh;
		margin-top: 200rpx;
	}
</style>
